package transferFunctions;

public class Sigmoidal implements TransferFunction{

	private double beta;
	
	public Sigmoidal(double beta){
		this.beta = beta;
	}
	
	@Override
	public double transfer(double net) {
		
		return 1/(1+Math.pow(Math.E, -beta*net));
	}

	@Override
	public double derivative(double net) {
		
		return transfer(net)*(1-transfer(net));
	}

}
